﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Questionnaire.Models
{
    /// <summary>
    /// 问题选项
    /// </summary>
    [Table("tb_selection")]
    public class Selection
    {
        /// <summary>
        /// 标识
        /// </summary>
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }
        /// <summary>
        /// 问题标识
        /// </summary>
        [Display(Name = "问题标识")]
        public long QuestionId { get; set; }
        /// <summary>
        /// 标号
        /// </summary>
        [Display(Name = "标号")]
        public string SymbolCode { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name = "内容")]
        public string Content { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        public int Sort { get; set; }
    }
}
